package com.xyz.frame.service.impl;

import cn.hutool.json.JSONObject;
import com.xyz.frame.dao.NormalMapper;
import com.xyz.frame.service.NormalService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Slf4j
@Service
public class NormalServiceImpl implements NormalService {

    @Autowired
    private NormalMapper normalMapper;


    @Override
    public List<JSONObject> listQuestion(String condition) {
        List<JSONObject> jsonObjects = normalMapper.listQuestion("xyz_prod_question",condition);
        log.info("===>listQuestion=>jsonObjects:{}",jsonObjects);
        return jsonObjects;
    }
}
